@extends('user.base.index')

@section('content')
    <div class="block-area" id="text-input">
                <h3 class="block-title">Text Input</h3>
                <form action='{{ url("admin/news") }}' enctype='multipart/form-data' method='post'>
                    <input type='hidden' name='_token' value='{{ csrf_token() }}'>
                    <div class="row">
                        <div class="col-lg-12">
                            标题：<input name='title' type="text" class="form-control m-b-10" placeholder="title">
                        </div>
                        <div class="col-lg-12">
                            内容：<input name='content' type="text" class="form-control m-b-10" placeholder="content">
                        </div>
                        <div class="col-lg-12">
                            时间：<input name='release_time' type="text" class="form-control m-b-10" placeholder="time">
                        </div>
                        状态：
                        <div class="col-lg-12">
                            显示<input name='sticky' type="radio" class="form-control m-b-10" value="2"><br>
                            <input name='sticky' type="radio" class="form-control m-b-10" value="1">不显示
                        </div>
                        <div class="col-lg-12">
                            图片：<input name='images' type="file" class="form-control m-b-10" >
                        </div>
                        
                        <div class='row'>
                            <div class="col-lg-12">
                                <input type='submit' class='btn' value='添加'>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </form>
                <!-- 显示验证规则失败时的信息 -->
                @if (count($errors) > 0)
                    <div class="alert alert-danger">
                        <ul>
                            @foreach ($errors->all() as $error)
                                <li>{{ $error }}</li>
                            @endforeach
                        </ul>
                    </div>
                @endif
    </div>
@stop

